package com.sf.dlb.jpa.model;

import javax.persistence.Entity;
import javax.persistence.Table;
import java.util.Date;

/**
 * 充值记录表 Entity
 *
 * Created by jing.tan on 2018/12/10.
 */
@Entity
@Table(name="wallet_topup_info")
public class WalletTopupInfo extends BaseEntity{
    /**
     `user_id` varchar(64) DEFAULT NULL COMMENT '用户id',
     `transaction_hash` varchar(255) DEFAULT NULL COMMENT '交易Hash',
     `for_address` varchar(255) DEFAULT NULL COMMENT '来源地址',
     `to_address` varchar(255) DEFAULT NULL COMMENT '目的地址',
     `count` decimal(10,3) DEFAULT NULL COMMENT '充值数量',
     `state` char(1) DEFAULT NULL COMMENT '充值状态(0：已完成，1：未完成)',
     `topup_time` datetime DEFAULT NULL COMMENT '充值时间',
     */
    private static final long serialVersionUID = 1L;
    private String userId;          // 用户id
    private String transactionHash;  // 交易Hash
    private String forAddress;      // 来源地址
    private String toAddress;       // 目的地址
    private Double count;          // 充值数量
    private String state;          // 充值状态
    private Date topupTime;      // 充值时间

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getTransactionHash() {
        return transactionHash;
    }

    public void setTransactionHash(String transactionHash) {
        this.transactionHash = transactionHash;
    }

    public String getForAddress() {
        return forAddress;
    }

    public void setForAddress(String forAddress) {
        this.forAddress = forAddress;
    }

    public String getToAddress() {
        return toAddress;
    }

    public void setToAddress(String toAddress) {
        this.toAddress = toAddress;
    }

    public Double getCount() {
        return count;
    }

    public void setCount(Double count) {
        this.count = count;
    }

    public String getState() {
        return state;
    }

    public void setState(String state) {
        this.state = state;
    }

    public Date getTopupTime() {
        return topupTime;
    }

    public void setTopupTime(Date topupTime) {
        this.topupTime = topupTime;
    }
}